FROM node:18-alpine

# 设置工作目录
WORKDIR /dockers/taro-nest-workout

COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# 暴露端口（和你的 NestJS 端口一致）
EXPOSE 3000

# 启动命令
CMD ["npm", "run", "start:prod"]
